import request from '@/utils/request'

// 查询Category列表
export function listCategory(query) {
return request({
url: '/api/v1/cms/categoryList',
method: 'get',
params: query
})
}

// 查询Category详细
export function getCategory (categoryId) {
return request({
url: '/api/v1/cms/category/' + categoryId,
method: 'get'
})
}


// 新增Category
export function addCategory(data) {
return request({
url: '/api/v1/cms/category',
method: 'post',
data: data
})
}

// 修改Category
export function updateCategory(data) {
return request({
url: '/api/v1/cms/category',
method: 'put',
data: data
})
}

// 删除Category
export function delCategory(CategoryId) {
return request({
url: '/api/v1/cms/category/' + CategoryId,
method: 'delete'
})
}